import request from '@/utils/request'

// 查询算法充值列表
export function listPlatformArithmeticPay(query) {
  return request({
    url: '/genius/platform-arithmetic-pay/list',
    method: 'get',
    params: query
  })
}

// 查询算法充值详细
export function getPlatformArithmeticPay(id) {
  return request({
    url: '/genius/platform-arithmetic-pay/' + id,
    method: 'get'
  })
}

// 新增算法充值
export function addPlatformArithmeticPay(data) {
  return request({
    url: '/genius/platform-arithmetic-pay',
    method: 'post',
    data: data
  })
}

// 修改算法充值
export function updatePlatformArithmeticPay(data) {
  return request({
    url: '/genius/platform-arithmetic-pay',
    method: 'put',
    data: data
  })
}

// 删除算法充值
export function delPlatformArithmeticPay(id) {
  return request({
    url: '/genius/platform-arithmetic-pay/' + id,
    method: 'delete'
  })
}

// 逻辑删除算法充值
export function removedPlatformArithmeticPay(id) {
  return request({
    url: '/genius/platform-arithmetic-pay/' + id,
    method: 'delete'
  })
}
